package com.yunji.cabinet.context.convert;

import com.yunji.base.domain.SuggestDO;
import com.yunji.common.model.vo.SuggestVO;
import com.yunji.common.utils.bean.BeanUtils;

import java.util.ArrayList;
import java.util.List;

public class SuggestConvert {

    public static List<SuggestVO> DOToVO(List<SuggestDO> doList){
        List<SuggestVO> list = new ArrayList<>();
        for(SuggestDO suggestDO : doList){
            SuggestVO suggestVO = new SuggestVO();
            BeanUtils.clone(suggestDO, suggestVO);
            list.add(suggestVO);
        }
        return list;
    }

}
